//
//  YTPickerOrderView.h
//  YiTuDriverClient
//
//  Created by 石少庸 on 2017/7/27.
//  Copyright © 2017年 Yitu. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol YTPickerOrderViewDelegate <NSObject>
@required
- (void)backgroundClickForDismiss;
@end

@class YTCarAndBonusModel;
@interface YTPickerOrderView : UIView

/**
 实例方法

 @param frame frame
 @param price 价格
 @param model 默认返回的车辆和加价券信息
 @return instancetype
 */
- (instancetype)initWithFrame:(CGRect)frame
                        price:(NSString *)price
                     carBonus:(YTCarAndBonusModel *)model;
/** 最大乘客数*/
@property (copy, nonatomic) NSString *maxPassenger;
/** 最大行李数*/
@property (copy, nonatomic) NSString *maxLuggage;
/** 代理*/
@property (weak, nonatomic) id<YTPickerOrderViewDelegate> delegate;
/** 点击背景消失*/
@property (copy, nonatomic) void (^backgroundClick)();

/** 接单，这里会返回优惠券key(couponKey)和车辆id(carId)，
    车辆id这里如果是车队会是0,如果没有选择优惠券或者无可用，也会是0
 */
@property (copy, nonatomic) void (^pickOrderClick)(RACTuple *data);
@end
